import React from 'react'
import { Tabs } from 'antd';
import type { TabsProps } from 'antd';
import Anagementc from './Anagementc';
import Salc from './Salc';
type Props = {}
const onChange = (key: string) => {
    console.log(key);
  };

  const items: TabsProps['items'] = [
    {
      key: '1',
      label: `房源列表`,
      children: <Anagementc/>,
    },
    {
      key: '2',
      label: `添加出售`,
      children: <Salc/>,
    },
  ];
  
const Tabc = (props: Props) => {
  return (
    <Tabs defaultActiveKey="1" items={items} onChange={onChange} />
  )
}

export default Tabc